import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import Plugin from './plugins/axios';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css'; // 引入样式
import './plugins/element.js';
import * as ElIconModules from '@element-plus/icons-vue';
import 'animate.css';
import axios from 'axios';

axios.defaults.withCredentials = true;

const app = createApp(App);

app.use(router);
app.use(Plugin);
app.use(ElementPlus); // 注册 Element Plus

for(let iconName in ElIconModules){
    app.component(iconName,ElIconModules[iconName]);
}

app.mount('#app');